package com.weishao.dbchange;

/**
 * 记录变化状态枚举类
 * 
 * @author tang
 *
 */
public enum RecordChangeType {
	VALUE_IDENTICAL(0, "identical", "不变"), 
	VALUE_CHANGED(1, "update", "更新"), 
	VALUE_INSERT(2, "insert", "插入"),
	VALUE_DELETED(3, "delete", "删除")
	;

	// 索引编号
	private Integer index;
	// 状态标记
	private String status;
	// 状态描述
	private String description;

	RecordChangeType(int idx, String flag, String description) {
		this.index = idx;
		this.status = flag;
		this.description = description;
	}

	public int getIndex() {
		return index;
	}

	public String getStatus() {
		return this.status;
	}

	public String getDescription() {
		return this.description;
	}
}
